const user = require("./user")

user.insertMany([{
    userName:"张三",
    pass:"123456",
    age:29,
    city:"上海"
},{
    userName:"李四",
    pass:"123",
    age:21,
    city:"北京"
},{
    userName:"王二",
    pass:"abcedefas",
    age:31,
    city:"上海"
},{
    userName:"勋勋",
    pass:"1111111",
    age:19,
    city:"杭州"
},{
    userName:"辉辉",
    pass:"123qwe!@#",
    age:22,
    city:"上海"
},{
    userName:"钱六",
    pass:"32222",
    age:24,
    city:"杭州"
},{
    userName:"赵五",
    pass:"98766544",
    age:21,
    city:"上海"
}],(err)=>{
    if(err){
        console.log("插入失败")
    }else{
        console.log("插入成功")
    }
})